Return statements are only useful if they return a value or break
the regular function flow (i.e. early returns). Remove all returns
that do neither.
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/731
hold.disconnect(signalId);
this.nextTask();
});
- return;
} else {
// This task finished, process the next one
this.nextTask();
let maxY = this._adjustment.upper - this._adjustment.page_size;
if (dragEvent.y >= gridBottom && currentY < maxY) {
this.goToPage(this._grid.currentPage + 1);
- return;
}
}
_deferredWorkQueue.push(workId);
if (data.actor.mapped) {
_queueBeforeRedraw(workId);
- return;
} else if (_deferredTimeoutId == 0) {
_deferredTimeoutId = GLib.timeout_add_seconds(GLib.PRIORITY_DEFAULT, DEFERRED_TIMEOUT_SECONDS, () => {
_runAllDeferredWork();
// or we get to full connectivity through other means
} else if (result == PortalHelperResult.COMPLETED) {
this._closeConnectivityCheck(path);
- return;
} else if (result == PortalHelperResult.RECHECK) {
this._client.check_connectivity_async(null, (client, result) => {
try {
(proxy, error) => {
if (error) {
log(error.message);
- return;
}
});
break;
default:
shellwm.completed_map(actor);
- return;
}
}
break;
default:
shellwm.completed_destroy(actor);
- return;
}
}